﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Profile;

namespace CooWork.Models
{
      


    public class ProfileCommon:ProfileBase
    {
        public virtual int CompanyId
        {

            get
            {
                return ((int)(this.GetPropertyValue("CompanyId")));
            }

            set
            {
                this.SetPropertyValue("CompanyId", value);
            }
           
        }

        public virtual int DepartmentId
        {
            get {
                return ((int)(this.GetPropertyValue("DepartmentId")));
            }

            set
            {
                this.SetPropertyValue("DepartmentId", value);
            }

        }

        public virtual string Phone
        {
            get
            {
                return ((string)(this.GetPropertyValue("Phone")));
            }

            set
            {
                this.SetPropertyValue("Phone", value);
            }

        }

        public virtual string Email
        {
            get
            {
                return ((string)(this.GetPropertyValue("Email")));
            }

            set
            {
                this.SetPropertyValue("Email", value);
            }

        }

        public virtual ProfileCommon GetProfile(string username)
        {
            return Create(username) as ProfileCommon;
        }



    }
}